import request from '@/utils/request'

// 查询核销记录，记录订单核销相关信息列表
export function listVerificationrecord(query) {
  return request({
    url: '/merchant/verificationrecord/list',
    method: 'get',
    params: query
  })
}

// 查询核销记录，记录订单核销相关信息详细
export function getVerificationrecord(id) {
  return request({
    url: '/merchant/verificationrecord/' + id,
    method: 'get'
  })
}

// 新增核销记录，记录订单核销相关信息
export function addVerificationrecord(data) {
  return request({
    url: '/merchant/verificationrecord',
    method: 'post',
    data: data
  })
}

// 修改核销记录，记录订单核销相关信息
export function updateVerificationrecord(data) {
  return request({
    url: '/merchant/verificationrecord',
    method: 'put',
    data: data
  })
}

// 删除核销记录，记录订单核销相关信息
export function delVerificationrecord(id) {
  return request({
    url: '/merchant/verificationrecord/' + id,
    method: 'delete'
  })
}
